package com.springboot.keycloak.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: TongRui乀
 * @Date: 2020-03-26 16:06
 * @description：
 */
@RestController
@RequestMapping("user")
public class UserController {


    @GetMapping("info")
    public Map<String,String> info(){
        HashMap<String, String> map = new HashMap<>();

        map.put("id", "1");
        map.put("name", "jack");
        map.put("age", "10");

        return map;
    }

}
